package com.bdqn.dao;

import com.bdqn.pojo.User;
import org.apache.log4j.Logger;

/**
 * UserDaoImpl（接口的约束性）
 *
 * @author LILIBO
 * @since 2021-11-30
 */
public class UserDaoImpl implements UserDao {

    private Logger logger = Logger.getLogger(UserDaoImpl.class);

    @Override
    public int save(User user) {
        // 前置增强 before(JoinPoint jp)
        logger.debug("用户数据保存成功！");
        return 1;
        // 后置增强 afterReturning(JoinPoint jp, Object result)
    }
}
